
	import java.util.Scanner;

	public class gaijin{
		public static void main(String args[]) {
			Scanner reader = new Scanner(System.in);
			while (!reader.hasNext("#")) {
				if (reader.hasNextInt()) {
					String x = reader.next();
					String y = reader.next();
					int a = Integer.parseInt(x);
					int b = Integer.parseInt(y);
					int c = a + b;
					System.out.println(c);
				} else if (reader.hasNextDouble()) {
					String v = reader.next();
					String y = reader.next();
					double a = Double.parseDouble(v);
					double b = Double.parseDouble(y);
					double c = a + b;
					System.out.println(c);
				} else if (reader.hasNext()) {
					if (reader.hasNextInt()) {
						String v = reader.next();
						String y = reader.next();
						int a = Integer.parseInt(v);
						String c = a + y;
						System.out.println(c);
					} else if (reader.hasNext()) {
						String v = reader.next();
						String y = reader.next();
						String c = v + y;
						System.out.println(c);
					}
				}
			}
		}
	}
